import Item from './Item'
import './index.less'
/**
 * 
 */
export default class Main extends React.Component{
	constructor(props){
		super(props);
	}
	
	render(){
		const {datas = [],setListModalVisible,showDetailModal} = this.props;
		const itemWidth = (Math.floor(100/(datas.length) * 100) / 100)+'%';
		return (
			<div className="flow-time-count">
				{
					datas.map((item, index) => {
						return (
							<Item ecId={`${this && this.props && this.props.ecId || ''}_Item@j4afk4@${index}`} {...item} itemWidth={itemWidth} setListModalVisible={setListModalVisible} showDetailModal = {showDetailModal}/>
						)
					})
				}
			</div>
		)
	}
}
